package com.kzj.mls.activity;

import android.os.Bundle;
import android.view.View;

import com.kzj.mls.R;
import com.kzj.mls.recyclerCard.basic.MaterialListView;
import com.kzj.mls.recyclerCard.card.other.AboutCard;
import com.umeng.analytics.MobclickAgent;

/**
 * Created by xyg on 2015/11/3.
 */
public class AboutActivity extends GBaseActivity {
    private MaterialListView material_listview;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.setContentViewFor720_1280(R.layout.template_materlistview);
        findViewByIds();
        initDatas();
        fillArrayInListView();
    }

    @Override
    protected void findViewByIds() {
        material_listview = (MaterialListView) findViewById(R.id.material_listview);
    }

    @Override
    protected void initDatas() {
        setTopTitle("服务说明");
        setLeftImg(View.VISIBLE, R.drawable.back);
    }

    @Override
    protected void fillArrayInListView() {
        AboutCard aboutCard = new AboutCard(this);
        material_listview.add(aboutCard);
    }
    public void onResume() {
        super.onResume();
        MobclickAgent.onPageStart(getClass().getSimpleName()); //统计页面(仅有Activity的应用中SDK自动调用，不需要单独写)
        MobclickAgent.onResume(this);          //统计时长
    }
    public void onPause() {
        super.onPause();
        MobclickAgent.onPageEnd(getClass().getSimpleName()); // （仅有Activity的应用中SDK自动调用，不需要单独写）保证 onPageEnd 在onPause 之前调用,因为 onPause 中会保存信息
        MobclickAgent.onPause(this);
    }
}
